Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

293
Vistas
Why does this throw "Cannot return null for non-nullable field Query.hello."?

I had a GraphQL server that I swear worked just a few weeks ago, but now, it's suddenly throwing "cannot null non-nullable field" errors.

Yes, I have checked for duplicates. Yes, I have googled it. Yes, I have checked for related GitHub issues.

I created a minimal repro here: https://stackblitz.com/edit/graphql-drkgtc?file=index.js. Either I'm tired, or there's some breaking change in a minor package version somewhere that I missed.

Does anyone have an idea what is going on here?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try this object for root variable:

var root = {
  Query: {
    hello:() => {return {hello :'hello'}}
  }
};

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda